import * as vscode from "vscode";
import { GoDefinitionProvider } from "./GoDefinitionProvider";
// import { provideHover } from "./hover";
// import { GoCompletionItemProvider } from "./GoCompletionItemProvider";
import * as path from "path";

export function activate(context: vscode.ExtensionContext) {
  console.log("启动！vue2helper");
  const goDefinitionProviderDisposable =
    vscode.languages.registerDefinitionProvider(
      "vue",
      new GoDefinitionProvider()
    );

  //   const hoverDisposable = vscode.languages.registerHoverProvider("vue", {
  //     provideHover,
  //   });

  //   const completionDisposable = vscode.languages.registerCompletionItemProvider(
  //     "vue",
  //     new GoCompletionItemProvider(),
  //     "<",
  //     "<u",
  //     "<u-",
  //     "@",
  //     ":"
  //   );

  context.subscriptions.push(goDefinitionProviderDisposable);
  //   context.subscriptions.push(hoverDisposable);
  //   context.subscriptions.push(completionDisposable);
}
